<?php
use_helper('I18N');
$culture = $sf_user->getCulture();
$show_open_account_panel = true;
?>

<div class="sidebar">
	<div class="sidebar_nav">
<?php if ($module == "about") { ?>
		<ul>
			<li><a href="/about"><?php echo __("About VICFX") ?></a></li>
			<li><a href="/about/ourAdvantages"><?php echo __("Our Advantages") ?></a></li>
			<li><a href="/about/companyNews"><?php echo __("Company News") ?></a></li>
<!--			<li><a href="/about/regulation">--><?php //echo __("Regulation") ?><!--</a></li>-->
			<li><a href="/about/fundsSafety"><?php echo __("Funds Safety") ?></a></li>
			<li><a href="/about/ourTechnology"><?php echo __("Our Technology") ?></a></li>
			<li><a href="/about/businessPartners"><?php echo __("Business Partners") ?></a></li>
			<li class="add_new"><a href="/about/upcomingActivities"><?php echo __("Upcoming Activities") ?><img src="/images/icon_new.png" alt="" /></a></li>
		</ul>
<?php } elseif ($module == "product") { ?>
        <ul>
            <li><a href="/product"><?php echo __("Overview") ?></a></li>
            <li><a href="/product/forex"><?php echo __("Forex") ?></a></li>
            <li><a href="/product/metals"><?php echo __("Metals") ?></a></li>
            <li><a href="/product/energy"><?php echo __("Energy") ?></a></li>
            <li><a href="/product/stocks"><?php echo __("Stocks") ?></a></li>
            <li><a href="/product/agriculture"><?php echo __("Agriculture") ?></a></li>
            <li><a href="/product/tradingHours"><?php echo __("Trading Hours") ?></a></li>
        </ul>
<?php } elseif ($module == "platform") { ?>
        <ul>
			<li><a href="/platform"><?php echo __("MT4 Overview") ?></a></li>
			<li><a href="/platform/mt4Plugins"><?php echo __("MT4 & Plug-ins") ?></a></li>
			<li><a href="/platform/multiAccountTerminal"><?php echo __("Multi-Account Terminal") ?></a></li>
			<li><a href="/platform/mt4Usage"><?php echo __("MT4 Usage Q&A") ?></a></li>
        </ul>
<?php } elseif ($module == "partnerships") { ?>
        <ul>
			<li><a href="/partnerships"><?php echo __("Overview") ?></a></li>
			<li><a href="/partnerships/why"><?php echo __("Why VICFX") ?></a></li>
			<li><a href="/partnerships/introducingBrokers"><?php echo __("Introducing Brokers") ?></a></li>
			<li><a href="/partnerships/whiteLabels"><?php echo __("White Labels") ?></a></li>
			<li><a href="/partnerships/moneyManagers"><?php echo __("Money Managers") ?></a></li>
			<li><a href="/partnerships/others"><?php echo __("Others") ?></a></li>
        </ul>
<?php } elseif ($module == "tradingaccounts") { ?>
        <ul>
			<li><a href="/tradingaccounts/registerDemo"><?php echo __("Open A Demo Account") ?></a></li>
			<li><a href="/tradingaccounts/registerLive"><?php echo __("Open A Live Account") ?></a></li>
			<li><a href="/tradingaccounts"><?php echo __("Standard Account") ?></a></li>
        </ul>
        <?php $show_open_account_panel = false; ?>
<?php } elseif ($module == "guides") { ?>
        <ul>
<!--			<li><a href="/guides">--><?php //echo __("Legal Documents") ?><!--</a></li>-->
			<li><a href="/guides"><?php echo __("Funding Procedures") ?></a></li>
			<li><a href="/guides/openAccountProcedures"><?php echo __("Open Account Procedures") ?></a></li>
        </ul>
<?php } elseif ($module == "contactus") { ?>
        <ul>
			<li><a href="/contactus"><?php echo __("Global Offices") ?></a></li>
			<li><a href="/contactus/qa"><?php echo __("Q&A") ?></a></li>
        </ul>
<?php } ?>
	</div>
<?php if ($show_open_account_panel) { ?>
	<a href="/tradingaccounts/registerLive" class="button"><?php echo __("Open A Live Account") ?></a>
	<a href="/tradingaccounts/registerDemo" class="button"><?php echo __("Open A Demo Account") ?></a>
<?php } ?>
</div>

<script type="text/javascript">
    jQuery(document).ready(function($) {
        initActiveSidebarItem();

        function initActiveSidebarItem() {
            var url = "<?php echo "/" . $module . ($action == "index" ? "" : "/" . $action) ?>";
    
            $("div.sidebar_nav ul li a[href$=\"" + url + "\"]").parent().addClass("current_page_item");
        }
    });
</script>